<template>
    <el-form :inline="true" ref="form" label-width="130px" :class="leftjianjuanMain">
        <el-row v-for="(item, index) in infoList" :key="index">
            <el-col>
                <!-- 1=基本数据,2=过程数据,3=固化信息,4=其他数据 -->
                <el-divider content-position="left" v-if="item.ZSFL == '1'">基本数据</el-divider>
                <el-divider content-position="left" v-else-if="item.ZSFL == '2'">过程数据</el-divider>
                <el-divider content-position="left" v-else-if="item.ZSFL == '3'">固化信息</el-divider>
                <el-divider content-position="left" v-else>其他数据</el-divider>
                <el-form-item label="" v-for="(xitem, xindex) in item.child" :key="xindex">
                    
                    <span slot="label"><em style="color:red">{{ xitem.IS_NO_EMPTY == 0 ? "" : " * " }} </em>{{
                        xitem.FIELD_CAPTION
                    }} </span>
                    <!-- {{ xitem }} -->
                  
                    <input_item :item="xitem" :inputParams="inputParams" @onChangeTap="onChangeTap" :typeInput="true" ></input_item>
                </el-form-item>
            </el-col>
        </el-row>
    </el-form>
</template>
<script>
import input_item from "@/components/input/index.vue" //不同类型的input 框

export default {
    components: {
        input_item
    },
    watch: {
        infoList: {
            handler(vav) {
                // console.log(vav,"222222222222222222")
                this.vavlist = vav;
            },
            immediate: true
        },
        inputParams: {
            handler(vav) { },
            immediate: true
        }
    },
    props: ["infoList", "inputParams","leftjianjuanMain"],
    data() {
        return {
            optionSelect: [],
            queryParams: {},
            vavlist: [],
            
        }
    },
    created() {
   
    },
    methods: {
        onChangeTap(data) {
             console.log(data,"liuhaiorng 2")
            for (var key in data) {
                if (data[key] === ""||data[key] === null) {
                    console.log( data[key],"sdklfj")
                    data[key]=null
                }
            }
       
            this.$emit("onChangeTap",data);
        },

    }
}
</script>